package com.blog.admin.Exception;

import lombok.Data;

/**
 * @author tangqj
 * @Description
 * @create 2020/1/17 15:22
 */
@Data
public class MyException  extends RuntimeException{


    //异常状态码
    private String code;

    //异常信息
    private String message;

    //        throw new MyException("","22"); 使用方式

    public MyException(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
